package com.ruoyi.house.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 我的收藏对象 house_my_favorite
 * 
 * @author ruoyi
 * @date 2024-06-21
 */
@TableName("house_my_favorite")
public class MyFavorite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId
    private Long id;

    /** 房源出租信息id */
    @Excel(name = "房源出租信息id")
    private Long houseZuInfoId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    //房源信息
    private ZuInfo zuInfo;

    //用户信息
    private SysUser user;


    public ZuInfo getZuInfo() {
        return zuInfo;
    }

    public void setZuInfo(ZuInfo zuInfo) {
        this.zuInfo = zuInfo;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHouseZuInfoId(Long houseZuInfoId) 
    {
        this.houseZuInfoId = houseZuInfoId;
    }

    public Long getHouseZuInfoId() 
    {
        return houseZuInfoId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("houseZuInfoId", getHouseZuInfoId())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
